#include<stdio.h>
#include<unistd.h>
#include<string.h>

int main()
{
	const char* fstr = "hello fwrite\n";
	const char* str = "hello write\n";
	//C
	printf("hello printf\n");	
	sleep(1);
	fprintf(stdout,"hello fprintf\n");
	sleep(1);
	fwrite(fstr,strlen(fstr),1,stdout);
	sleep(1);
	
	//system call
	write(1,str,strlen(str));
	sleep(5);
	//close(1);

	fork();
	return 0;
}
